<?php
/**
 * Visitor options
 * 
 * @author Joseph Chereshnovsky <joseph.chereshnovsky@gmail.com>
 * @version 1.0
 */
$this->headTitle( $this->_('Options') . ' :: ');

$this->headLink()->appendStylesheet(APP_URL . '/css/user/profile.css');

$current_locale = $this->User->locale;
?>
<div id="user-profile-block">
	<h1><?php echo $this->_('Options') ?></h1>

	<form action="<?php echo APP_URL ?>/user/profile/options" method="post">
	<fieldset>
	<legend><?php echo $this->_('Interface options');?></legend>
	<p>
		<label for="interface_language"><?php echo $this->_('Localization language') ?></label>
		<select name="interface_language" id="interface_language">
		<?php foreach ($this->langs as $code => $LanguageI18n): ?>
			<option <?php if ($current_locale == $code): ?>selected="selected"<?php endif; ?> value="<?php echo $code ?>"><?php echo $LanguageI18n ?></option>
		<?php endforeach; ?>
		</select>
	</p>
	<p>
		<input type="submit" value="<?php echo $this->_('Save') ?>" />
	</p>
	</fieldset>
	</form>
</div>